<?php
declare (strict_types = 1);

namespace app\admin\validate;

use think\Validate;

class User extends Validate
{

	protected $rule = [
        'name'      =>  ['require','min'=>3,'max'=>25],
        'password'  =>  ['min'=>6,'max'=>32,'alphaDash'],
    ];

    protected $message = [
        'name'      =>  '账号最少三个字符',
        'password'  =>  '密码长度6-32,并且只能为字母和数字,下划线_',
    ];
}
